package com.bkgy.controller.tPdiDataL3Tcm2280.controller;


import com.bkgy.controller.tPdiDataL3Tcm2280.service.ITPdiDataL3Tcm2280Service;
import com.bkgy.sys.common.entity.ResultData;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;
import java.util.List;

@RestController
@RequestMapping("/tPdiDataL3Tcm2280")


public class TPdiDataL3Tcm2280Controller {

    @Autowired
    private ITPdiDataL3Tcm2280Service tPdiDataL3Tcm2280Service;

    @Operation(summary = "产品成材率全流程分析", description = "产品成材率全流程分析")
    @PostMapping("/get_allprocessproduct")
    public ResultData getAllprocessProduct (@RequestBody @Valid List<String> coilIds)
    {
//        List<String> entIds = (List<String>) coilIds;
        return tPdiDataL3Tcm2280Service.getPdiDataL3Tcm2280_page(coilIds);
    }

}
